// Opens Image Window
// 
function openImageWindow( evt, windowName, width, height )
{
	var imgurl;
	if ( evt.srcElement.tagName == "A" ) imgurl = evt.srcElement.href;
	else if ( evt.srcElement.tagName == "IMG" ) imgurl = evt.srcElement.src;
	else return;
	if ( width == null ) width = 100;
	if ( height == null ) height = 100;
	window.open( imgurl, windowName, "menubar=no,scrollbars=1,resizable=1,width=" + width + ",height=" + height );
	// Prevent browser to open anchor href.
	evt.returnValue=false;
	return false;
}

